
 
 <extend name="Public:form_index_pages_layout"/>

		<block name="index_search">
	
	    <label>标题：</label>
		<input  type="text" 
				value="{$_REQUEST['s_title']}" 
				name="s_title" 
				class="form-control" 
				size="15" />
				
		<label for="j_title" class="control-label">规定分类：</label>
						<select name="s_provsid" id="provsid" data-toggle="selectpicker"
						data-emptytxt="--请选择--">
							<option value="">--请选择--</option>
							<foreach name="provsionslist" item="v">
		              <option 
		              		<if condition="$v.id EQ $_REQUEST['s_provsid'] "> 
								selected value="{$id}" 
							<else />
								value="{$v.id}"
							</if>
		              >
		              <!-- 改成循环 -->
        
					        <assign name="strLevel" value="+" />
					        <for start="0" end="$v.level" name="i" >
								<php>$strLevel = $strLevel . "---" ;</php>
							</for>
							
							<switch name="v.level"> 
							
					 			<case value="0">+<B>{$v.name}</b></case> 
								<case value="$v.level">{$strLevel}{$v['name']}</case>
								
								<default />
							 </switch>
			          
			         </option>
		          </foreach>
					</select> 	
		<label>开始日期：</label><input type="text" name="s_startdt" id="s_startdt" value="{$_REQUEST['s_startdt']}" data-toggle="datepicker" size="10"/>
		<label>结束日期：</label><input type="text" name="s_enddt" id="s_enddt" value="{$_REQUEST['s_enddt']}" data-toggle="datepicker" size="10"/>
	
		        <button type="submit"  class="btn-default" data-icon="search">查询</button>
		          
			    <!-- //新增按钮 -->
			    <include file="Public/form_index_titleoper_layout" h="700" w="600" />
			    
			    
				<span><a class="btn btn-orange" href="javascript:;" onclick="$(this).navtab('reloadForm', true);"
				data-icon="undo">刷新</a>
				</span>
				
			  <span style="float:right;margin-right:5px;"
			  <php>echo display(CONTROLLER_NAME.'/del');</php>
			  
			  >
			  <a href="__URL__/del/navTabId/{:CONTROLLER_NAME}" 
			     class="btn btn-red" 
			     data-toggle="doajaxchecked" 
			     data-confirm-msg="确定要删除吗？" 
			     data-icon="remove" 
			     data-idname="delids" 
			     data-group="deleteid" 
			     data-icon="minus">删除</a>
			  </span>
			  
				</block>


	<block name="index_content">
	<table data-toggle="tablefixed" data-width="100%" data-layout-h="0" data-nowrap="true">
		<thead>
			<tr>
			    <th  width="30"><input type="checkbox" class="checkboxCtrl" data-group="deleteid" data-toggle="icheck"></th>
				<th  width="13%" data-order-direction="desc" data-order-field="provsname">分类</th>
				<th data-order-direction="desc" data-order-field="no">规定编号</th>
				<th>规定名称</th>
				<th>文件页数</th>
				<th data-order-direction="desc" data-order-field="orgname">主管部门</th>
				<th data-order-direction="desc" data-order-field="modifydt">修订日期</th>
				<th>发布日期</th>
				<th data-order-direction="desc" data-order-field="status">使用状态</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<foreach name="list" item="v">
			<tr>
			    <td>
			    <if condition="($v.userid EQ session('uid')) or ($v.userid  EQ '') or (authsuperadmin(session('uid')))  ">
			    <input type="checkbox" name="deleteid"  value="{$v.id}" data-toggle="icheck" />
			    </if>
			    </td>
				<td>{$v.provsname}</td>
				<td><b>{$v.no}</b></td>
				<td>{$v.title}</td>
				<td>{$v.pages}</td>
				<td>{$v.orgname}</td>
				<td>{$v.modifydt}</td>
				<td>{$v.publishdt}</td>
				<td>
				<!-- <a
					href="__URL__/changeStatus/id/{$v['id']}/navTabId/{:CONTROLLER_NAME}"
					data-toggle="doajax" data-confirm-msg="确定要操作吗？"> -->
					<if condition="$v.status EQ 1 ">
						<!-- <img src="__PUBLIC__/images/ok.gif" border="0" /> -->
						有效
						<else />
						无效
						<!-- <img src="__PUBLIC__/images/locked.gif" border="0" /> -->
						</if>
						<!-- </a> -->
						</td>
				<td> 
				
				<a  <php>echo display(CONTROLLER_NAME.'/accessory');</php>
					href="__URL__/accessory/id/{$v.id}/navTabId/{:CONTROLLER_NAME}"
					class="btn btn-green btn-sm" data-toggle="dialog" data-width="700"
					data-height="600" 
					data-id="dialog-mask" data-mask="true">附件</a> 
					
					<include file="Public/form_index_operation_layout" h="700" w="600" />
					</td>
			</tr>
			<!-- data-id="dialog-mask" data-mask="true" -->
			</foreach>
		</tbody>
	</table>
<!-- </div>

<div class="bjui-footBar">
        <div class="pages">
            <span>共 {$totalCount} 条  每页 {$numPerPage} 条</span>
        </div>
	    <div class="pagination-box" data-toggle="pagination" data-total="{$totalCount}" data-page-size="{$numPerPage}" data-page-current="{$currentPage}">
        </div>
    </div> -->
    </block>
